﻿@using System.Collections
@using Models
@using(Html.BeginForm("AllUsers","Admin"))
{
    List<Role> role = ViewBag.role as List<Role>;

 
     @Html.DropDownListFor(x=>x.Role,new SelectList(role,"Id","Name",new {value = 0}))
    <label>
        Email
    </label>
    @Html.TextBoxFor(x=>x.Email)
    <label>
        Name
    </label>
    @Html.TextBoxFor(x => x.Name)
    <input type="submit" name="subFilter" value="sort"/>
}
<b>@ViewBag.Message</b>